package error

import "fmt"

type RequestError struct {
	Code    int
	Message string
}

func (h *RequestError) Error() string {
	return fmt.Sprintf("status code %d: %s", h.Code, h.Message)
}
